package com.heer.gymnasium.fragment;

import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.ListView;

import com.heer.gymnasium.R;
import com.heer.gymnasium.adapter.OrderAllAdapter;
import com.heer.gymnasium.constant.Type;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * Created by heer on 17/4/9.
 */

public class OrderUnpaidFragment extends BaseRefreshFragment {
    @BindView(R.id.list)
    ListView list;
    @BindView(R.id.btn_refresh)
    Button btnRefresh;
    @BindView(R.id.layout_no_data)
    LinearLayout layoutNoData;

    private OrderAllAdapter mAdapter;

    @Override
    protected int setConvertView() {
        return R.layout.fragment_order_unpaid;
    }

    @Override
    protected void init() {
        super.init();
    }

    @Override
    protected void initView() {
        super.initView();
        list.setAdapter(mAdapter = new OrderAllAdapter(getActivity(), Type.ORDER_ALL));
    }

    @Override
    protected void loadData(boolean loadmore) {
        super.loadData(loadmore);
    }

    @OnClick({R.id.btn_refresh, R.id.layout_no_data})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.btn_refresh:
            case R.id.layout_no_data:
                break;
        }
    }
}
